.class Lcom/estrongs/android/ui/pcs/i$f;
.super Landroid/os/Handler;
.source "PcsUpgradeViews.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/pcs/i;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/pcs/i;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/pcs/i;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eq v0, v1, :cond_3

    const/4 v3, 0x2

    if-eq v0, v3, :cond_1

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    goto/16 :goto_1

    .line 2
    :cond_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_4

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/i;->a(Lcom/estrongs/android/ui/pcs/i;)Landroid/content/Context;

    move-result-object v0

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    invoke-static {v0, p1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_1

    .line 4
    :cond_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_2

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object v0, v0, Lcom/estrongs/android/ui/pcs/i;->s:Lcom/estrongs/android/ui/pcs/i$h;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/i$h;->a(Lcom/estrongs/android/ui/pcs/i$h;)Landroid/os/Handler;

    move-result-object v0

    iget-object v4, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object v4, v4, Lcom/estrongs/android/ui/pcs/i;->s:Lcom/estrongs/android/ui/pcs/i$h;

    invoke-static {v4}, Lcom/estrongs/android/ui/pcs/i$h;->a(Lcom/estrongs/android/ui/pcs/i$h;)Landroid/os/Handler;

    move-result-object v4

    iget-object v5, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object v5, v5, Lcom/estrongs/android/ui/pcs/i;->s:Lcom/estrongs/android/ui/pcs/i$h;

    const/4 v5, 0x5

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    invoke-virtual {v4, v3, v2, v5, p1}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 6
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object p1, p1, Lcom/estrongs/android/ui/pcs/i;->s:Lcom/estrongs/android/ui/pcs/i$h;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/i$h;->a(Lcom/estrongs/android/ui/pcs/i$h;)Landroid/os/Handler;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object v0, v0, Lcom/estrongs/android/ui/pcs/i;->s:Lcom/estrongs/android/ui/pcs/i$h;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/i$h;->a(Lcom/estrongs/android/ui/pcs/i$h;)Landroid/os/Handler;

    move-result-object v0

    const/16 v4, -0x3e8

    iget-object v5, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    .line 7
    invoke-static {v5}, Lcom/estrongs/android/ui/pcs/i;->a(Lcom/estrongs/android/ui/pcs/i;)Landroid/content/Context;

    move-result-object v5

    const v6, 0x7f11079d

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 8
    invoke-virtual {v0, v3, v2, v4, v5}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 9
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/i;->d(Lcom/estrongs/android/ui/pcs/i;)Landroid/widget/Button;

    move-result-object v0

    invoke-static {p1, v0, v1}, Lcom/estrongs/android/ui/pcs/i;->a(Lcom/estrongs/android/ui/pcs/i;Landroid/widget/Button;Z)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/i;->e(Lcom/estrongs/android/ui/pcs/i;)Landroid/widget/ProgressBar;

    move-result-object p1

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setVisibility(I)V

    goto :goto_1

    .line 11
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "pcs://"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v4, [Ljava/lang/String;

    aget-object v2, v4, v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "@pcs"

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/ui/pcs/i;->b(Lcom/estrongs/android/ui/pcs/i;Ljava/lang/String;)Ljava/lang/String;

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, [Ljava/lang/String;

    aget-object p1, p1, v1

    invoke-static {v0, p1}, Lcom/estrongs/android/ui/pcs/i;->c(Lcom/estrongs/android/ui/pcs/i;Ljava/lang/String;)Ljava/lang/String;

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/i$f;->a:Lcom/estrongs/android/ui/pcs/i;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/i;->f(Lcom/estrongs/android/ui/pcs/i;)Ljava/lang/String;

    move-result-object p1

    .line 14
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/estrongs/android/ui/pcs/i$f$a;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/ui/pcs/i$f$a;-><init>(Lcom/estrongs/android/ui/pcs/i$f;Ljava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 15
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_4
    :goto_1
    return-void
.end method
